package com.sq108.template.service;

import com.alibaba.fastjson.JSONObject;
import com.sq108.template.domain.RewardOrder;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 奖励发放服务client
 * Created by B41-CXY on 2017/6/1.
 */
@FeignClient("WALLET-SERVICE")
public interface WalletService {

    /**
     * 发送奖励
     */
    @RequestMapping(value="/order/save", method=RequestMethod.POST)
    JSONObject orderSave(@RequestBody RewardOrder rewardOrder);

}
